package com.sky.mapper;

import com.github.pagehelper.Page;
import com.sky.dto.SetmealPageQueryDTO;
import com.sky.entity.Setmeal;
import com.sky.entity.SetmealDish;
import com.sky.vo.DishItemVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface StemealDishMapper {
    Integer countDish(@Param("ids") List<Long> ids);

    List<Setmeal> page(SetmealPageQueryDTO setmealPageQueryDTO);

    Setmeal queryById(Long id);

    void updateStatus(Integer status,Long id);

    void insertBatch(List<SetmealDish> setmealDishes);

    void insert(Setmeal setmeal);

    Integer countStart(@Param("ids")List<Long> ids);

    void removeBatch(@Param("ids")List<Long> ids);

    void removeBatch1(@Param("ids")List<Long> ids);


    void update(Setmeal setmeal);

    void deleteBySetmealId(Long setmealId);

    void deleteByDishIds(Long ids);

    List<Setmeal> listByCategoryId(Long categoryId);

    List<SetmealDish> selectByDishId(Long id);

    List<DishItemVO> getDishsById(Long id);

    Integer coutByMap(Map param);
}
